package service.network;

import exceptions.NoValidInputException;
import materials.network.*;


/**
 * Represents a Service which contains Methods to make Calculations to Network
 * 
 * @author Sheepy
 */
public class NetworkCalculationService {

	/**
	 * Network which the Operation are make too
	 */
	private NetworkInterface _nni;

	/**
	 * Creates a new Service with a Reference to a Network
	 * 
	 * @param nni
	 */
	public NetworkCalculationService(NetworkInterface nni) {
		_nni = nni;
	}
	
	/**
	 * Compute the InputSet on the NeuronalNetwork Returns a NetworkResult
	 * 
	 * @param input
	 *            - InputSet
	 * @return
	 */
	public double[] calculateInput(double[] _inputvector) {
		double[] d = _nni.calculateNetworkInputVector(_inputvector);
		return d;
	}
}
